import axios from '@/libs/api.request'

//保存请假信息
export const saveLeaveInfo = (data) => {
  return axios.request({
    url: 'sysLeave/saveLeaveInfo',
    method: 'post',
    data
  })
}
//获取请假信息
export const getLeaveData = (data) => {
  return axios.request({
    url: 'sysLeave/getLeaveData',
    method: 'post',
    data
  })
}
//获取个人请假列表
export const getLeavePage = (data) => {
  return axios.request({
    url: 'sysLeave/getLeavePage',
    method: 'post',
    data
  })
}
//删除请假
export const deleteLeave = (data) => {
  return axios.request({
    url: 'sysLeave/deleteLeave',
    method: 'post',
    data
  })
}
